系统基本信息 linux

您所在的位置:网站首页 handle 翻译 系统基本信息 linux

系统基本信息 linux

2023-02-22 10:18| 来源: 网络整理| 查看: 265

1 查看CPU

  1.1 查看CPU个数

  # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l

  2

  **uniq命令:删除重复行;wc –l命令:统计行数**

  1.2 查看CPU核数

  # cat /proc/cpuinfo | grep "cpu cores" | uniq

  cpu cores : 4

  1.3 查看CPU型号

  # cat /proc/cpuinfo | grep 'model name' |uniq

  model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz

  总结:该服务器有2个4核CPU,型号Intel(R) Xeon(R) CPU E5630 @ 2.53GHz

  2 查看内存

  2.1 查看内存总数

  #cat /proc/meminfo | grep MemTotal

  MemTotal: 32941268 kB //内存32G

  2.2 查看内存条数

  本节内容引自新浪博文《Linux查看内存条数》

  查看原文:

  # dmidecode |grep -A16 "Memory Device$"

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: 2048 MB //1条2G内存

  Form Factor: DIMM

  Set: 1

  Locator: DIMM1

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: 667 MHz

  Manufacturer: 7F7F7F7F7F510000

  Serial Number: 0403E324

  Asset Tag: 450721

  Part Number: 72T256220HR3SA

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: 2048 MB //1条2G内存

  Form Factor: DIMM

  Set: 1

  Locator: DIMM2

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: 667 MHz

  Manufacturer: 7F7F7F7F7F510000

  Serial Number: 0403E324

  Asset Tag: 450721

  Part Number: 72T256220HR3SA

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 2

  Locator: DIMM3

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 2

  Locator: DIMM4

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 3

  Locator: DIMM5

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 3

  Locator: DIMM6

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  总结:该服务器有两条2G内存 ,空余4个插槽

  3 查看硬盘

  3.1 查看硬盘大小

# fdisk -l | grep Disk

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes

  总结:硬盘大小146.7G,即厂商标称的160G

0 0 系统基本信息 linux Linux 查看系统基本信息 获取Linux(redhat)系统的一些基本信息 linux下 主机硬件及系统基本信息查询方法 获取Solaris系统基本信息 Android获取系统基本信息 Linux 基本信息查看 Linux 基本信息查看 linux基本信息查询 Linux服务器基本信息 Linux查看硬件基本信息 Linux服务器基本信息查看 获取系统的一些基本信息 shell查看系统基本信息脚本 java获取系统的基本信息 shell脚本查看系统基本信息 麻省理工分布式系统教程--基本信息 linux下获取用户基本信息 getchar()——用法注意 html学习笔记--常见图片格式区别 一个安卓小项目(4)——安卓获取手机IMEI号及写配置文件 day13 JS操作cookie 系统基本信息 linux HTML入门笔记三之HTML列表和框架 《微信思维》摘录(一) windows 如何查看端口占用情况? UVA213 - Message Decoding SecureCRT如何与GNS3上的路由建立连接 黑马程序员——其他4:JDK1.5新特性介绍 tar hdu 5131 梁山好汉


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3